Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browserstack-local

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserstack-local

Nodejs bindings for BrowserStack Local

  • 1.5.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created

What is browserstack-local?

The browserstack-local npm package allows you to establish a secure connection between your local machine and the BrowserStack cloud. This enables you to test your web applications hosted on your local server or behind a firewall using BrowserStack's real device cloud.

What are browserstack-local's main functionalities?

Start Local Testing

This feature allows you to start a local testing connection with BrowserStack. You need to provide your BrowserStack access key to establish the connection. Once the connection is established, you can run your tests and then stop the connection.

const browserstack = require('browserstack-local');

const bs_local = new browserstack.Local();
const bs_local_args = { 'key': 'YOUR_ACCESS_KEY' };

bs_local.start(bs_local_args, function(error) {
  if (error) return console.log(error);
  console.log('Started BrowserStackLocal');

  // Your test code here

  bs_local.stop(function() {
    console.log('Stopped BrowserStackLocal');
  });
});

Stop Local Testing

This feature allows you to stop the local testing connection. It is important to stop the connection after your tests are completed to ensure that no unnecessary resources are being used.

bs_local.stop(function() {
  console.log('Stopped BrowserStackLocal');
});

Check Local Testing Status

This feature allows you to check if the local testing connection is currently running. It returns a boolean value indicating the status of the connection.

console.log(bs_local.isRunning());

Other packages similar to browserstack-local

Keywords

FAQs

Package last updated on 09 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc